package com.hhxy.logback;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LogbackDemo1 {
    public static final Logger LOGGER = LoggerFactory.getLogger("LogbackDemo1.class");
    public static void main(String[] args) {
        LOGGER.debug("main方法开始执行");
        LOGGER.info("main方法开始执行");
        int a = 1;
        int b = 0;
        try {
            System.out.println(a / b);
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("程序出问题了");
        }
    }
}
